package com.ketangpai.admin.exception;


import com.ketangpai.admin.enumeration.CodeMessage;

/**
 * 自定义异常
 */
public class ToolsException extends RuntimeException {

    private static final long serialVersionUID = 6452768096047206186L;

    protected final String message;

    protected final int code;

    public String getMessage()
    {
        return message;
    }

    public int getCode() {
        return code;
    }


    public ToolsException(String msg){
        this.code = CodeMessage.E_ERROR.getCode();
        this.message = msg;
    }
}
